[TOOLS] Wait for backend devices to set up before resuming execution
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Mon, 25 Sep 2006 08:11:52 +0000 (09:11 +0100)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Mon, 25 Sep 2006 08:11:52 +0000 (09:11 +0100)
of a restored guest.
Signed-off-by: Keir Fraser <keir@xensource.com>
tools/python/xen/xend/XendCheckpoint.py

index c0c5e48d487e4970e3404409c23ac3ddb49c61f6..8e08fb425df92da2ae9fc777cec346aab5ac7a5b 100644 (file)
@@ -161,8 +161,8 @@ def restore(xd, fd):
         if handler.store_mfn is None or handler.console_mfn is None:
             raise XendError('Could not read store/console MFN')
 
-        #Block until src closes connection
-        os.read(fd, 1)
+        os.read(fd, 1)           # Wait for source to close connection
+        dominfo.waitForDevices() # Wait for backends to set up
         dominfo.unpause()
         
         dominfo.completeRestore(handler.store_mfn, handler.console_mfn)